package com.ojoin.ojoin.eb_spider.domain;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class EmailMessage implements Serializable {
	private AlipayAccount alipayAccountMain;

	private List<AlipayAccount> alipayAccounts;

	private List<String> mailsAdress;

	private List<String> mailsAdressMonitoring;

	/**
	 * 生成日期
	 */
	private Date createTime;

	/**
	 * 异常信息
	 */
	private Exception exception;
	
	
	public EmailMessage(Exception exception, Date createTime) {
		this.exception = exception;
		this.createTime = createTime ;
		init();
	} 

	public EmailMessage(AlipayAccount alipayAccountMain,
			List<AlipayAccount> alipayAccounts, Date createTime) {
		this.alipayAccountMain = alipayAccountMain;
		this.alipayAccounts = alipayAccounts;
		this.createTime = createTime ;
		init();
	}

	public EmailMessage(AlipayAccount alipayAccountMain,
			List<AlipayAccount> alipayAccounts,
			CaiNaioInventory caiNaioInventory, Date createTime) {
		this.alipayAccountMain = alipayAccountMain;
		this.alipayAccounts = alipayAccounts;
		this.createTime = createTime ;
		init();
	}

	private void init() {
		List<String> mails = new ArrayList<String>();
		mails.add("zhangwenchao@18join.com");
		mails.add("guoting@18join.com");
		mails.add("459800285@qq.com");
		
		mails.add("1952048733@qq.com");
		// 豆总
		mails.add("124051349@qq.com");


		List<String> mailsAdressMonitoring = new ArrayList<String>();
		mailsAdressMonitoring.add("zhangwenchao@18join.com");

		this.setMailsAdressMonitoring(mailsAdressMonitoring);
		this.setMailsAdress(mails);

	}

	

	public List<AlipayAccount> getAlipayAccounts() {
		return alipayAccounts;
	}

	public void setAlipayAccounts(List<AlipayAccount> alipayAccounts) {
		this.alipayAccounts = alipayAccounts;
	}

	public List<String> getMailsAdress() {
		return mailsAdress;
	}

	public void setMailsAdress(List<String> mailsAdress) {
		this.mailsAdress = mailsAdress;
	}

	public List<String> getMailsAdressMonitoring() {
		return mailsAdressMonitoring;
	}

	public void setMailsAdressMonitoring(List<String> mailsAdressMonitoring) {
		this.mailsAdressMonitoring = mailsAdressMonitoring;
	}

	public AlipayAccount getAlipayAccountMain() {
		return alipayAccountMain;
	}

	public void setAlipayAccountMain(AlipayAccount alipayAccountMain) {
		this.alipayAccountMain = alipayAccountMain;
	}



	public Exception getException() {
		return exception;
	}

	public void setException(Exception exception) {
		this.exception = exception;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}
